﻿namespace LightCAD.Core
{

    /// <summary>
    /// document event for objects
    /// </summary>
    public class ObjectChangedEventArgs : EventArgs
    {
        public LcadObject Parent { get; set; }
        public ObjectChangeType Type { get; set; }
        public LcadObject Target { get; set; }
        public bool IsCancel { get; set; }

    }

    /// <summary>
    /// document event for object properties
    /// </summary>
    public class PropertyChangedEventArgs : EventArgs
    {
        public LcadObject Object { get; set; }
        public string PropertyName { get; set; }
        public Property ExtProperty { get; set; }
        public PropertyGroup ExtPropertyGroup { get; set; }
        public object OldValue { get; set; }
        public object NewValue { get; set; }

    }
}